//
//  AddressBook.m
//  通讯录 _自定义cell
//
//  Created by 洛洛大人 on 16/6/21.
//  Copyright © 2016年 dllo. All rights reserved.
//

#import "AddressBook.h"

@implementation AddressBook

-(void)dealloc {
    [_dicOfContact release];
    [super dealloc];
    
}

-(instancetype)init {
    self = [super init];
    
    if (self) {
        self.dicOfContact = [[NSMutableDictionary alloc]initWithCapacity:5];
    }
    return self;
    
}

-(NSArray<NSString *> *)getGroupNames {
    
    return [self.dicOfContact.allKeys sortedArrayUsingSelector:@selector(compare:)];
}

@end
